<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>

<form id="updateDailyProductForm" method="post" enctype="multipart/form-data">
  <table align="center" style="margin-top: 50px">
    <tr>
      <td>
        <label>类型:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="type" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>id:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="id" data-options="required:true" readonly/>
      </td>
    </tr>
    <tr>
      <td>
        <label>名称:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="name" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>最低价格:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="minprice" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>最高价格:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="maxprice" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>押金:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="deposit" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>市场价:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="marketvalue" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>状态:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="status" data-options="required:true"/>
      </td>
    </tr>

    <tr>
      <td>
        <label>简介:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="content" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>季节:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="season" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>材质:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="material" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>款式:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="design" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>长短:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="length" data-options="required:true"/>
      </td>
    </tr>

    <tr>
      <td>
        <label>风格:</label>
      </td>
      <td>
        <input class="easyui-textbox" type="text" name="style" data-options="required:true"/>
      </td>
    </tr>
    <tr>
      <td>
        <label>场合:</label>
      </td>
      <td>
        <select id="dd" class="easyui-combobox" name="catalogid" style="width:200px;display: none" data-options="textField:'name',valueField:'id',mode:'remote',method:'post',url:'${pageContext.request.contextPath}/catalog/findAll'">
          <option>请选择</option>
        </select>
      </td>
    </tr>
    <tr>
      <td>
        <label>品牌:</label>
      </td>
      <td>
        <select  class="easyui-combobox" name="brandid" style="width:200px;" data-options="textField:'name',valueField:'id',mode:'remote',method:'post',url:'${pageContext.request.contextPath}/brand/findAll'">
          <option>请选择</option>
        </select>
      </td>
    </tr>
    <tr>
      <td>
        <label>选择图片:</label>
      </td>
      <td>
        <input  name="productimage" class="easyui-filebox" data-options="prompt:'choose image..',buttonText:'添加图片',buttonIcon:'icon-add',multiple:true,buttonAlign:'left'" style="width: 300px">
      </td>
    </tr>
  </table>
</form>
<script type="text/javascript">
    $("#updateDailyProductForm").form('load',"${pageContext.request.contextPath}/product/findById?id=${param.id}");
</script>

